<template>
  <div>

    <!-- <h1 @click="fun()">我是一个标题点我去详情页</h1> -->
    <h1 v-for="(v) in arr" :key="v.id" >
        {{v.title}}
        {{v.groupPrice}}
        <button @click="fun(v.title,v.groupPrice)">点击传参</button>
    </h1>
    
    <!-- <BottomBar/> -->
  </div>
</template>

<script>
export default {
    data(){
        return {
            arr:[
                {id:12123123234,title:"双人欢乐撸猫套餐（电话YuYue可发详细路线给您)",groupPrice:"76"},
                {id:2123423,title:"单人嗨皮撸猫套餐（电话YuYue可发详细路线给您）",groupPrice:"66"},
            ]
        }
    },
    methods:{
        fun(id,title){
            this.$router.push({path:"/yacShopPage",query:{id:id,title:title}})
        }
    }
}
</script>

<style>

</style>